<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!-- author: -->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>课程信息管理</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<link href="admin/theme/list.css" rel="stylesheet" type="text/css" />
	</head>
	<body>
		<center>
			<form action="admin/course_list" method="post">
				<table width="100%" border=0 align=center cellpadding=0
					cellspacing=0 bordercolor=#ffffff style="FONT-SIZE: 10pt">
					<tr bgcolor="#EFF3F7">
						<td align="left" colspan="2">
							<a href="admin/course/addInput.jsp" align="left">添加课程</a>
						</td>
					</tr>
					<tr bgcolor="#EFF3F7">
						<td align="center" colspan="2">
							<h2>
								课程信息管理
							</h2>
						</td>
					</tr>
					<tr bgcolor="#EFF3F7">
						<td>
							输入课程编号:
							<input type="text" name="cono" style="width: 80px;" />
						</td>
						<td align="right">
							<input type="submit" value="查询" halign="right" />
							&nbsp;&nbsp;
						</td>
					</tr>
				</table>
			</form>
			<table width="100%" border=0 align=center cellpadding=0 cellspacing=0
				bordercolor=#ffffff style="FONT-SIZE: 10pt">
				<tr>
					<td height=28 align=right valign="center" nowrap="nowrap"
						background="admin/images/list_middle.jpg">
						&nbsp;
					</td>
				</tr>
			</table>
			<table width="100%" border="0" cellpadding="0" cellspacing="1"
				bgcolor="#6386d6">
				<!-- 列表标题栏 -->
				<tr bgcolor="#EFF3F7">
					<td width="10%" height="37" align="center">
						<b>课程编号</b>
					</td>
					<td width="10%" height="37" align="center">
						<b>课程名称</b>
					</td>
					<td width="15%" height="37" align="center">
						<b>教师编号</b>
					</td>
					<td width="10%" height="37" align="center">
						<b>建议课时</b>
					</td>
					<td width="15%" height="37" align="center">
						<b>培训目标</b>
					</td>
					<td width="10%" height="37" align="center">
						<b>操作</b>
					</td>
				</tr>
				<!-- 列表数据栏 -->

				<c:forEach var="c" items="${courses }">
					<tr bgcolor="#EFF3F7" onmouseover="this.bgColor = '#DEE7FF';"
						onmouseout="this.bgColor = '#EFF3F7';">
						<form action="admin/course/updateInput.jsp" method="post">
							<td align="center" valign="center">
								<a href="#">${c.cono }</a>
								<input type="hidden" name="cono" value="${c.cono }" />
							</td>
							<td align="center" valign="center">
								<a href="#">${c.coname }</a>
								<input type="hidden" name="coname" value="${c.coname }" />
							</td>
							<td align="center" valign="center">
								${c.tno }
								<input type="hidden" name="info" value="${c.tno }" />
							</td>
							<td align="center" valign="center">
							${c.advise_hour}
								<input type="hidden" name="advise_hour" value="" />
							</td>
							<td align="center" valign="center">
							${c.goal}
								<input type="hidden" name="goal" value="" />
							</td>
							<td align="center" valign="center">
								<input type="submit" value="修改" />
								<a href="admin/course_delete?cono=${c.cono}"
									onclick="return confirm('确定要删除吗？')">删除</a>
							</td>
						</form>
					</tr>
				</c:forEach>
			</table>
			<!-- 在列表数据为空的时候，要显示的提示信息 -->
			<table height="30" width="100%" border=0 align=center cellpadding=0
				cellspacing=0 bordercolor=#ffffff style="FONT-SIZE: 14pt">
				<tr>
					<td align=right valign="center" nowrap="nowrap"
						background="admin/images/list_middle.jpg">
						<label style="color: blue;">
							共有
							<span>500</span>条记录,
							<span>50</span>页&nbsp;&nbsp;&nbsp;
						</label>
						<a href="#">首页</a>
						<a href="#">1</a>
						<a href="#"> 2 </a>
						<a href="#"> 3 </a>
						<a href="#"> 4 </a>
						<a href="#"> 5 </a>
						<a href="#">下一页</a>
						<a href="#">末页</a> &nbsp;&nbsp;&nbsp; 跳转到第
						<input type="text" style="width: 30px; height: 25px" />
						页
						<input type="button" style="height: 25px" value="Go" />
					</td>
				</tr>
			</table>
		</center>
	</body>
</html>
